#pragma once

#include <vector>
#include <string>

class InsertStruct
{
public:
	enum State{Empty, Full, Writing, Reading};
public:
	InsertStruct(void);
	~InsertStruct(void);
	bool GetEmptyAndWrite(std::string *&pSrid, std::vector<double> *&pData);
	bool GetFullAndRead(std::string *&pSrid, std::vector<double> *&pData);
	bool EndWriting();
	bool EndReading();
	void SetAllEnd();
	bool AllEnd();
private:
	std::string srid1;
	std::vector<double> *data1;
	std::string srid2;
	std::vector<double> *data2;
private:
	State state1;
	State state2;
	bool allend;
};

